% ---------------------- data taping ----------------------
%
\pgfplothandlerrecord{\streamA} % define a stream for data in the first file
\pgfplotstreamstart				% (notice: do not use numerical characters
\pgfplotxyfile{data1.txt}		%  for the name of the stream)
\pgfplotstreamend				%
%
\pgfplothandlerrecord{\streamB} % define a stream for data in the second file
\pgfplotstreamstart				% (notice: do not use numerical characters
\pgfplotxyfile{data2.txt}		%  for the name of the stream)
\pgfplotstreamend				%
%
% --------------------------------------------------------------------




% ------------------- plot the first stream --------------------
%
\begin{pgfscope}
{
	% select the stream
	\pgfplothandlerlineto \streamA
	%
	% set low-level parameters
	\pgfsetlinewidth{0.2cm}
	\pgfsetdash{{0.1cm}{0.2cm}}{0.0cm}
	\pgfsetcolor{red}
	%
	% plot the stream
	\pgfusepath{stroke}
}
\end{pgfscope}
%
% --------------------------------------------------------------------


% for the other streams the sintax is as before


% format example for the data in file data1.txt:
%
%0.1	1.3
%0.2	2.3
%0.4	1.7
%0.5	2.4
%0.7	2.9
